<template>
  <div>order -- {{ state.count }} -- {{ $t('info.age') }}</div>
  <button @click="update">更新</button>
</template>
<script lang="ts">
  export default { name: 'OrderIndex' }
</script>
<script setup lang="ts">
  import { useOrderStore } from '@/store/modules/useOrder'
  import { addOrder } from '@/api/order'
  const state = useOrderStore()

  const update = () => {
    state.increment()
  }

  addOrder({
    clientName: 'sdf',
    orderId: 7878,
  })
</script>
